laravel validation number greater than 0

32

laravel validation number greater than 0 -

//amount must be greater than 0 laravel validation 
function store(Request $request)
{
  $request->validate([
     'product_price' => 'required|numeric|gt:0'
   ]);
 } 
//@sujay

Comments

Submit
0 Comments